/**
 * @(#) DonationSubtractionMoneyVO.as
 *
 * @date		2009. 04. 20.
 * @version		1.0
 * @author		Jo, ChangHun
 * @description	특별공제 신용카드 Value Object
 * 				 
 */
package com.skt.common_hr.yearadjustment.model.vo
{
	import com.wcl.utils.DateUtil;
	import com.wcl.utils.NumberUtil;
	
	
	[Bindable]
	public class OtherSubtrationVO
	{
		public var PREIN:String = "";		//종(전)근무지
		public var PNSTY:String = "";		//비용의 2차 범주
		public var PNSTT:String = "";
		public var BETRG:Number = 0;		//금액
		public var FINCO:String = "";		//금융기관코드
		public var INSNM:String = "";		//연금저축 금융사명
		public var ACCNO:String = "";		//계좌번호
		public var BEGDA:Date = new Date();			//시작일
		public var ENDDA:Date = new Date();			//종료일
		
		public var CHECK:Boolean = false;
		
		
		public function clone():OtherSubtrationVO
		{
			var tmp:OtherSubtrationVO = new OtherSubtrationVO();
			tmp.PREIN = this.PREIN;
			tmp.PNSTY = this.PNSTY;
			tmp.PNSTT = this.PNSTT;
			tmp.BETRG = this.BETRG;
			tmp.FINCO = this.FINCO;
			tmp.INSNM = this.INSNM;
			tmp.ACCNO = this.ACCNO;
			tmp.BEGDA = new Date(this.BEGDA);
			tmp.ENDDA = new Date(this.ENDDA);
			
			return tmp;
		}
		
		public function get BEGDA_F():String{
			return DateUtil.toDefaultString(BEGDA);
		}	
		public function set BEGDA_F(val:String):void{
		}
		public function get ENDDA_F():String{
			return DateUtil.toDefaultString(ENDDA);
		}	
		public function set ENDDA_F(val:String):void{
		}
		
		public function get BETRG_F():String{
			return NumberUtil.NumberFormat(BETRG);
		}
		public function set BETRG_F(val:String):void{
		}
	}
}